﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class FloorTablDetailsInfoConfig : EntityTypeConfiguration<FloorTablDetailsInfo>
    {
        public FloorTablDetailsInfoConfig()
        {
            ToTable("Himall_FloorTablDetails");        
            HasRequired(x => x.Himall_FloorTabls).WithMany(x => x.Himall_FloorTablDetails).HasForeignKey(x => x.TabId);
            HasRequired(x => x.Himall_Products).WithMany(x => x.Himall_FloorTablDetails).HasForeignKey(x => x.ProductId);
        }
    }
}
